// UserPackageProgress.java
package com.example.gymlearning.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserPackageProgress {
    private Long id;
    private Long userId;
    private Long packageId;
    private String status; // NOT_STARTED-未开始, IN_PROGRESS-进行中, COMPLETED-完成
    private Boolean gatewayUnlocked; // 知识包闯关是否解锁
    private Boolean gatewayCompleted; // 知识包闯关是否完成
    private Integer gatewayScore; // 知识包闯关得分
    private Date gatewayStartTime;
    private Date gatewayCompleteTime;
    private Integer completedPoints; // 已完成的知识点数量
    private Integer totalPoints; // 总知识点数量
    private Date createdTime;
    private Date updatedTime;
}
